<?php 
echo "In file:",__FILE__,PHP_EOL;

    $fp = fopen(STDIN, 'r');
    $input = fgets($fp, 255);
    fclose($fp);
    $input = chop($input);
    echo "input:";
    var_dump($input);